<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" import="java.util.*,com.telecom.cms.dbconnect.*,com.telecom.cms.dao.*"%>
<jsp:directive.page import="com.telecom.cms.dto.*"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>湖北电信数据仓库CMS系统</title>
		<SCRIPT language="javascript">
		      function onload(){
			  //window.open("open.jsp");
			  }   
		
		     function unload(){
			 window.open("close.jsp");
			 //window.location.href="close.jsp";
			 }
		
		</SCRIPT>
<%
        request.getSession().removeAttribute("AtomList");
		request.getSession().removeAttribute("Outputlist");
		request.getSession().removeAttribute("copycondition");
        String Latn_id=request.getParameter("Latn_id");
        if(Latn_id!=null){
        
            int sid = Integer.parseInt(Latn_id);
            if(1000==sid){
            
                session.setAttribute("selectlatnid","1001");
            }
            Calendar myCalendar = Calendar.getInstance();
        	session.setAttribute("billing_cycle_y",((Integer)(myCalendar.get(Calendar.YEAR))).toString());
        	session.setAttribute("billing_cycle_m",((Integer)(myCalendar.get(Calendar.MONTH))).toString());
 			String User_Auth=request.getParameter("User_Auth");
        	String User_Id=request.getParameter("User_Id");
			session.setAttribute("latnid",Latn_id);
			session.setAttribute("userid",User_Id);
			session.setAttribute("User_Auth",null==User_Auth?"普通用户":User_Auth);
			LOC_LATNDTO dto=new LOC_LATNDAO().findById(Latn_id);
			String latncd=dto.getLatn_cd();
			String latndesc=dto.getLatn_desc();
			session.setAttribute("latndesc",latndesc);
			session.setAttribute("latncd",latncd);
			session.setAttribute("oldid",Latn_id);
		}else{
			response.sendRedirect("http://133.0.177.7/tpifweb/login.do");
		}
 %>
	</head>
	<frameset rows="90,*" frameborder="no" border="0" framespacing="0">

		<frame src="head.jsp" name="topFrame" scrolling="No"
			noresize="noresize" />

		<frame src="cmsindex.jsp?kindId=2" name="downFrame" noresize="noresize" />

	</frameset>

	<noframes>
		<body onUnload='unload();'>
		
		</body>
	</noframes>
</html>
